Skip to content

Conversation

@matdtr
Copy link
Contributor

@matdtr matdtr commented Sep 20, 2025

Hey, I just made a Pull Request!

Fixed handling of active prop in NewAnnouncementBanner
Extended signal and notification on update when the annoucencement is activated
Updated EditAnnoucementPage to navigate to root path as the announcement creation page

All items reported in #5235

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

@matdtr matdtr requested review from a team, gaelgoth and kurtaking as code owners September 20, 2025 15:10
@matdtr matdtr requested a review from Parsifal-M September 20, 2025 15:10
@backstage-goalie
Copy link
Contributor

Thanks for the contribution!
All commits need to be DCO signed before they are reviewed. Please refer to the the DCO section in CONTRIBUTING.md or the DCO status for more info.

@backstage-goalie
Copy link
Contributor

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/plugin-announcements-backend workspaces/announcements/plugins/announcements-backend minor v0.11.1
@backstage-community/plugin-announcements workspaces/announcements/plugins/announcements minor v0.12.1

hopehadfield and others added 5 commits September 20, 2025 17:13
….4 (backstage#5340)

Signed-off-by: Renovate Bot <[email protected]>
Co-authored-by: backstage-goalie[bot] <97962292+backstage-goalie[bot]@users.noreply.github.com>
Signed-off-by: Mattia <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: Mattia <[email protected]>
… v2.23.4 (backstage#5368)

Signed-off-by: Renovate Bot <[email protected]>
Co-authored-by: backstage-goalie[bot] <97962292+backstage-goalie[bot]@users.noreply.github.com>
Signed-off-by: Mattia <[email protected]>
… status, navigate to root on edit complete

Signed-off-by: Mattia <[email protected]>
@matdtr matdtr changed the title Fix NewAnnouncementBanner & trigger notification on status update announcements: Fix NewAnnouncementBanner & trigger notification on status update Sep 22, 2025
Copy link
Member

@gaelgoth gaelgoth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @matdtr, thanks for fixing this!

The tests are failing due to the change in the active property

page?: number;
max?: number;
active?: boolean;
active?: string;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to keep it as a boolean

Suggested change
active?: string;
active?: boolean;

Copy link
Contributor Author

@matdtr matdtr Sep 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @gaelgoth, i do agree but on the GET path the backend receives the value as string that’s why the switch of type.

if kept as boolean it would fail as reported here #5235.

Let me know how you would like to address it, if revert the type or fix the tests.

PS.
Sorry maintainers not sure why all you got tagged in this PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aaah, I didn’t realize it was the endpoint query, which is always a string with express. That makes sense, let’s treat it as a string for the "external" type contract in the http query and update the tests accordingly.

I think the rebase ended up modifying some existing commits. Can you please fix this. Or totally fine to just spin up a fresh PR instead 👍🏾

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, created a new PR #5519. Will close this

@matdtr matdtr closed this Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants